﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C09 RID: 3081
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MultiplayerFightGiveUpScRsp : IMessage<MultiplayerFightGiveUpScRsp>, IMessage, IEquatable<MultiplayerFightGiveUpScRsp>, IDeepCloneable<MultiplayerFightGiveUpScRsp>, IBufferMessage
	{
		// Token: 0x170026D1 RID: 9937
		// (get) Token: 0x060089B6 RID: 35254 RVA: 0x0016E6BC File Offset: 0x0016C8BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MultiplayerFightGiveUpScRsp> Parser
		{
			get
			{
				return MultiplayerFightGiveUpScRsp._parser;
			}
		}

		// Token: 0x170026D2 RID: 9938
		// (get) Token: 0x060089B7 RID: 35255 RVA: 0x0016E6C3 File Offset: 0x0016C8C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MultiplayerFightGiveUpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170026D3 RID: 9939
		// (get) Token: 0x060089B8 RID: 35256 RVA: 0x0016E6D5 File Offset: 0x0016C8D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MultiplayerFightGiveUpScRsp.Descriptor;
			}
		}

		// Token: 0x060089B9 RID: 35257 RVA: 0x0016E6DC File Offset: 0x0016C8DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiplayerFightGiveUpScRsp()
		{
		}

		// Token: 0x060089BA RID: 35258 RVA: 0x0016E6E4 File Offset: 0x0016C8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiplayerFightGiveUpScRsp(MultiplayerFightGiveUpScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060089BB RID: 35259 RVA: 0x0016E709 File Offset: 0x0016C909
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiplayerFightGiveUpScRsp Clone()
		{
			return new MultiplayerFightGiveUpScRsp(this);
		}

		// Token: 0x170026D4 RID: 9940
		// (get) Token: 0x060089BC RID: 35260 RVA: 0x0016E711 File Offset: 0x0016C911
		// (set) Token: 0x060089BD RID: 35261 RVA: 0x0016E719 File Offset: 0x0016C919
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060089BE RID: 35262 RVA: 0x0016E722 File Offset: 0x0016C922
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MultiplayerFightGiveUpScRsp);
		}

		// Token: 0x060089BF RID: 35263 RVA: 0x0016E730 File Offset: 0x0016C930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MultiplayerFightGiveUpScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060089C0 RID: 35264 RVA: 0x0016E760 File Offset: 0x0016C960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060089C1 RID: 35265 RVA: 0x0016E79F File Offset: 0x0016C99F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060089C2 RID: 35266 RVA: 0x0016E7A7 File Offset: 0x0016C9A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060089C3 RID: 35267 RVA: 0x0016E7B0 File Offset: 0x0016C9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060089C4 RID: 35268 RVA: 0x0016E7E4 File Offset: 0x0016C9E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060089C5 RID: 35269 RVA: 0x0016E822 File Offset: 0x0016CA22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MultiplayerFightGiveUpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060089C6 RID: 35270 RVA: 0x0016E853 File Offset: 0x0016CA53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060089C7 RID: 35271 RVA: 0x0016E85C File Offset: 0x0016CA5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400349B RID: 13467
		private static readonly MessageParser<MultiplayerFightGiveUpScRsp> _parser = new MessageParser<MultiplayerFightGiveUpScRsp>(() => new MultiplayerFightGiveUpScRsp());

		// Token: 0x0400349C RID: 13468
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400349D RID: 13469
		public const int RetcodeFieldNumber = 2;

		// Token: 0x0400349E RID: 13470
		private uint retcode_;
	}
}
